﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using CE.Global;

public partial class sitemap_sitemap_th : MyLanguageBasePage
{
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Page.Title = Resources.Title.SiteMapTitle;

        LiteralControl newln = new LiteralControl(Environment.NewLine);
        HtmlMeta language = new HtmlMeta();
        language.Name = "language";
        language.Content = Resources.Title.PageLanguage;

        HtmlMeta keywords = new HtmlMeta();
        keywords.Name = "keywords";
        keywords.Content = Resources.Title.SiteMapKeyword;

        HtmlMeta description = new HtmlMeta();
        description.Name = "description";
        description.Content = Resources.Title.SiteMapDescription;

        Page.Header.Controls.AddAt(10, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(11, language);
        Page.Header.Controls.AddAt(12, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(13, keywords);
        Page.Header.Controls.AddAt(14, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(15, description);
        if (!IsPostBack)
        {
            //Products
            hplHome.NavigateUrl = CE.Global.General.GetUrl("/", Page);
            hplCarInsurance.NavigateUrl = CE.Global.General.GetUrl("/car-insurance/car-details", Page);
            hplReminder.NavigateUrl = CE.Global.General.GetUrl("/car-insurance/set-insurance-reminder", Page);

            //Partners
            hplAIG.NavigateUrl = CE.Global.General.GetUrl("/partners/aig-insurance", Page);
            hplAzcp.NavigateUrl = CE.Global.General.GetUrl("/partners/azcp-insurance", Page);
            hplAsset.NavigateUrl = CE.Global.General.GetUrl("/partners/asset-insurance", Page);
            hplAXA.NavigateUrl = CE.Global.General.GetUrl("/partners/axa-insurance", Page);
            hplBKI.NavigateUrl = CE.Global.General.GetUrl("/partners/bki-insurance", Page);
            hplDeves.NavigateUrl = CE.Global.General.GetUrl("/partners/deves-insurance", Page);
            hplDhipaya.NavigateUrl = CE.Global.General.GetUrl("/partners/dhipaya-insurance", Page);
            hplKPI.NavigateUrl = CE.Global.General.GetUrl("/partners/krungthai-insurance", Page);
            hplKSK.NavigateUrl = CE.Global.General.GetUrl("/partners/ksk-insurance", Page);
            hplLMG.NavigateUrl = CE.Global.General.GetUrl("/partners/lmg-insurance", Page);
            hplMittare.NavigateUrl = CE.Global.General.GetUrl("/partners/mittare-insurance", Page);
            hplMSIG.NavigateUrl = CE.Global.General.GetUrl("/partners/msig-insurance", Page);
            hplMuangThai.NavigateUrl = CE.Global.General.GetUrl("/partners/muangthai-insurance", Page);
            hplSCSMG.NavigateUrl = CE.Global.General.GetUrl("/partners/scsmg-insurance", Page);
            hplSMK.NavigateUrl = CE.Global.General.GetUrl("/partners/synmunkong-insurance", Page);
            hplTPB.NavigateUrl = CE.Global.General.GetUrl("/partners/thaipaiboon-insurance", Page);
            hplThaiSri.NavigateUrl = CE.Global.General.GetUrl("/partners/thaisri-insurance", Page);
            hplThaivivat.NavigateUrl = CE.Global.General.GetUrl("/partners/thaivivat-insurance", Page);
            hplTokioMarine.NavigateUrl = CE.Global.General.GetUrl("/partners/tokio-insurance", Page);
            hplViriyah.NavigateUrl = CE.Global.General.GetUrl("/partners/viriyah-insurance", Page);

            //Information 
            hplAboutUs.NavigateUrl = CE.Global.General.GetUrl("/about-us/", Page);
            hplFAQ.NavigateUrl = CE.Global.General.GetUrl("/faq/", Page);
            string _HowToBuyURL = "/faq/how-to-buy-car-insurance";
            if (Session["Language"] != null && Session["Language"] == "en-US")
            {
                _HowToBuyURL = CE.Global.General.GetUrl("/faq/how-to-buy-car-insurance", Page);
            }
            hplHowToBuy.NavigateUrl = _HowToBuyURL;
            hplPrivacy.NavigateUrl = CE.Global.General.GetUrl("/privacy/", Page);
            hplTerms.NavigateUrl = CE.Global.General.GetUrl("/terms/", Page);
            hplContactUs.NavigateUrl = CE.Global.General.GetUrl("/contact-us/", Page);
            hplNews.NavigateUrl = CE.Global.General.GetUrl("/news/", Page);
            hplGGinMedia.NavigateUrl = CE.Global.General.GetUrl("/news/media", Page);
            hplTestimonials.NavigateUrl = CE.Global.General.GetUrl("/customer-testimonial/testimonial", Page);
        }

    }

}
